package com.cx.service.fhy.impl;

import com.cx.mapper.GameMapper;
import com.cx.pojo.Game;
import com.cx.service.fhy.GamemallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GamemallServiceImpl implements GamemallService {
    @Autowired
    GameMapper gameMapper;

    @Override
    public List<Game> selectByGameName(String gameName) {
        return gameMapper.selectByGameName(gameName);
    }

    @Override
    public List<Game> selectAll() {
        return gameMapper.selectAll();
    }

    @Override
    public List<Game> selectByType(String gtId) {
        return gameMapper.selectByType(gtId);
    }

    @Override
    public List<Game> selectByDiscount() {
        return gameMapper.selectByDiscount();
    }

    @Override
    public List<Game> selectByPrice(Map<String,Long> params) {
        return gameMapper.selectByPrice(params);
    }
}
